import { ref } from "vue"
import { defineStore } from "pinia"

export const useMineStore = defineStore("MineData", () => {
  const popupVisible = ref(false) //弹窗是否显示
  const clickedFeatureCoordinates = ref(null) // 存储点击的要素的坐标
  //关闭弹窗
  const closePopup = () => {
    popupVisible.value = false
    clickedFeatureCoordinates.value = null
  }

  return { popupVisible, clickedFeatureCoordinates, closePopup }
})
